.class Lcom/waiqin365/lightapp/chexiao/ax;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ax;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/ax;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/bn;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/bn;->b()Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bn;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    const v2, 0x7f080718

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->showToast(Ljava/lang/String;)V

    const/4 v2, 0x0

    invoke-static {v2}, Lcom/waiqin365/lightapp/chexiao/d/a;->a(Lcom/waiqin365/lightapp/chexiao/d/d;)V

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v2

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->g(Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/waiqin365/lightapp/chexiao/CXRecordsDetailJQActy;

    invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "id"

    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bn;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->startActivity(Landroid/content/Intent;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->x(Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;)Z

    move-result v1

    if-eqz v1, :cond_1

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v2, "type"

    sget-object v3, Lcom/fiberhome/gaea/client/a/e;->j:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v3

    const-string/jumbo v4, "reinit_activity"

    invoke-virtual {v3, v4, v1, v2}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->finish()V

    goto :goto_0

    :cond_1
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->A(Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;)Lcom/waiqin365/lightapp/chexiao/c/f;

    move-result-object v1

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/chexiao/c/f;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->c(Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->d(Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;)V

    goto/16 :goto_0

    :cond_2
    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bn;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_3

    const v1, 0x7f08013b

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_3
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXJQDHActivity;->showToast(Ljava/lang/String;)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x1005
        :pswitch_0
    .end packed-switch
.end method
